<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
	<title>用户注册</title>
	<style type="text/css">
		*{
			margin: 0;
			padding: 0;
			box-sizing: border-box;
			font-family: Arial, sans-serif;
		}
		h1{
			text-align: center;
			padding-top: 20px;
			font-size: 30px;
		}
		form{
			display: flex;
			flex-wrap: wrap;
			justify-content: center;
			align-items: center;
			margin-top: 20px;
			width: 50%;
			margin: 0 auto;
			padding: 20px;
			background-color: #f0f0f0;
			border: 1px solid #ccc;
			border-radius: 5px;
		}
		label{
			width: 100%;
			display: block;
			font-weight: bold;
			margin-bottom: 5px;
		}
		input, select, textarea{
			width: 100%;
			padding: 10px;
			margin-bottom: 20px;
			border: none;
			border-radius: 5px;
			background-color: #fff;
			box-shadow: 0 0 5px rgba(0,0,0,0.2);
		}
		select option{
			padding: 5px;
		}
		textarea{
			resize: none;
			height: 100px;
		}
		input[type="submit"]{
			background-color: #4CAF50;
			color: #fff;
			font-size: 16px;
			font-weight: bold;
			cursor: pointer;
		}
		input[type="submit"]:hover{
			background-color: #3e8e41;
		}
		.error{
			color: red;
			margin-bottom: 10px;
		}
	</style>
</head>
<body>
	<h1>用户信息</h1>
	<form action="saveUser" method="post">
		<label for="username">用户名:</label>
		<input type="text" id="username" name="username" required>
		<label for="password">密码:</label>
		<input type="password" id="password" name="password" required>
		<label for="gender">性别:</label>
		<select name="gender" id="gender">
			<option value="male">男性</option>
			<option value="female">女性</option>
		</select>
		<label for="email">邮箱:</label>
		<input type="email" id="email" name="email" required>
		<label for="language">熟练开发语言:</label>
		<select name="language[]" id="language" multiple>
			<option value="java">Java</option>
			<option value="c">C语言</option>
			<option value="c++">C++</option>
		</select>
		<label for="intro">个人介绍:</label>
		<textarea name="intro" id="intro"></textarea>
		<input type="submit" value="提交">
	</form>
</body>
</html>